using MediatR;
using RBAC.ErrorCode;
using System;
using System.ComponentModel.DataAnnotations;
namespace RBAC.Write.Api.Application.Command.ProductionPlans
{
    public class UpdateProductionPlanCommands:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Required]
        public long Id { get; set; }

        /// <summary>
        /// 计划主题
        /// </summary>
        [Required]
        public string PlanTopic { get; set; }

        /// <summary>
        /// 计划单号（唯一）
        /// </summary>
        [Required]
        public string PlanCode { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        [Required]
        public DateTime DocumentsTime { get; set; }

        /// <summary>
        /// 关联项目
        /// </summary>
        public string? AssociatedProjects { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 物品ID
        /// </summary>
        [Required]
        public long GoodsId { get; set; }

        /// <summary>
        /// 销售Id
        /// </summary>
        [Required]
        public long SaleId { get; set; }
    }
}
